//package com.lin.manager.controller.file;
//
//import com.lin.manager.common.resp.R;
//import com.lin.manager.oss.model.Chunk;
//import com.lin.manager.oss.service.IOssBiz;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @作者: 林江
// * @创建时间: 2024/3/21
// * @功能:
// */
//@Api(tags = "文件管理")
//@RestController
//@RequestMapping("file")
//public class OssController {
//    @Autowired
//    private IOssBiz ossBiz;
//
//    @ApiOperation("文件管理 - oss文件上传")
//    @PostMapping("uploadOss")
//    public R uploadOss(MultipartFile file) throws Exception {
////        ossService.upload(file);
//        return R.ok();
//    }
//
//    @ApiOperation("文件管理 - oss文件下载")
//    @GetMapping("downloadOss")
//    public void downloadOss(HttpServletResponse response,
//                            String objectName) throws Exception {
////        ossService.download(objectName);
//    }
//
//    @ApiOperation("文件管理 - 分片上传")
//    @PostMapping("uploadChunk")
//    public R uploadChunk(Chunk chunk) throws IOException {
//        return R.ok(ossBiz.uploadChunk(chunk));
//    }
//
//    @ApiOperation("文件管理 - 分片合并")
//    @PostMapping("chunk/merge")
//    public R merge(Chunk chunk) throws Exception {
//        ossBiz.merge(chunk);
//
//        return R.ok();
//    }
//}
